import request from '@/utils/request'

// 字典
export function getListByTypeCode(query) {
  return request({
    url: '/cms/sysm/commonDict/listByTypeCode/',
    method: 'get',
    params: query
  })
}
export function getDefectCategory() {
  return request({
    url: '/cms/JcjcCategoryCtype/getDefectCategory',
    method: 'get'
  })
}

export function getCategoryList(query) {
  return request({
    url: '/cms/JcjcCategoryCtype/listPage/',
    method: 'get',
    params: query
  })
}

export function updateOrEditData(query) {
  return request({
    url: '/cms/JcjcCategoryCtype/saveOrUpdate/',
    method: 'post',
    data: query
  })
}
